home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 15441 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.1 KB  |  34 lines

  1. Path: jupiter.planet.net!usenet
  2. From: ajs@planet.net (A.J. Saveriano)
  3. Newsgroups: comp.lang.c++,comp.os.msdos.programmer
  4. Subject: MSVC++ linking trouble
  5. Date: Fri, 05 Apr 1996 14:54:27 GMT
  6. Organization: Planet Access Networks - Stanhope, NJ
  7. Message-ID: <4k3c49$gi4@jupiter.planet.net>
  8. NNTP-Posting-Host: stan47.planet.net
  9. X-Newsreader: Forte Free Agent 1.0.82
  10.  
  11. // This code will compile with no errors but when it tries to link
  12. // I receive the following error message:
  13. // error L2029: 'int _far _cdecl system(char _near*)' : unresolved
  14. external
  15. // I have also tried using process.h instead of stdlib.h but I get the
  16. same error
  17. // I have checked to be certian the directory paths of my include
  18. files are
  19. // where they should be. All seems ok. 
  20. // I am using Microsoft Visual C++ version 1.00 (installed from CDROM)
  21. // and am running under Windows 95.
  22. // Any help would be most appreciated.
  23. // All this code is suppose to do is give me a directory listing.
  24. // It is simply an exercise in using the SYSTEM function.
  25.  
  26. #include <stdlib.h>
  27. system(char *); // prototype the function
  28. void main( void )
  29. {
  30.    system( "dir" );
  31. }
  32.  
  33.  
  34.